package cn.cdeden.aiqa.domain.bo;

import cn.cdeden.aiqa.domain.WikiRecord;
import cn.cdeden.common.core.validate.AddGroup;
import cn.cdeden.common.core.validate.EditGroup;
import cn.cdeden.common.mybatis.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * AI提问记录业务对象 wiki_record
 *
 * @author Nick
 * @date 2024-12-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = WikiRecord.class, reverseConvertGenerate = false)
public class WikiRecordBo extends BaseEntity {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 标题
     */
    @NotBlank(message = "标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 条数
     */
    @NotNull(message = "条数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long reCount;

    /**
     * 记录
     */
    @NotBlank(message = "记录不能为空", groups = { AddGroup.class, EditGroup.class })
    private String record;

    /**
     * 会话id
     */
    private String conversationId;

    /**
     * 知识库应用ID
     */
    private Long appId;

    /**
     * 提问用户
     */
    @NotNull(message = "提问用户不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 助手id
     */
    private Long assistantId;

    /**
     * 专家知识库标识
     */
    private String expert;    /**
     * 提问用户昵称
     */
    private String nickName;}
